package com.bsb.base.common.config;



public class Const {

	
	public static final long SUPER_ADMIN = 1;
	/**
	 * 企业付款证书路径
	 * @return
	 */
	public static String getCertPah(){
		String path = "";
		 String osName = System.getProperties().getProperty("os.name").toLowerCase();
         if(osName.contains("windows")){
             path =  Global.getConfig("windows.cert");
         }else if(osName.contains("linux")){
             path =  Global.getConfig("linux.cert");
         }
         return path;
	}
	
	/**
	 * 录音状态：（0 初始待审核 1 审核通过 2 审核不通过 3 补录审核中 4补录审核通过 5补录审核不通过）
	 */
	public static String VOICE_INIT = "0";
	public static String VOICE_PASS = "1";
	public static String VOICE_NOPASS = "2";
	public static String VOICE_REPAIR_INIT = "3";
	public static String VOICE_REPAIR_PASS = "4";
	public static String VOICE_REPAIR_NOPASS = "5";
	
	/**
	 * 审核  通过  / 不通过
	 */
	public static String CHECKYES = "0";
	public static String CHECKNO = "1";
	/**
	 * 音频文件路径
	 * @return
	 */
	public static String getVoiceBasePath(){
		String voicePath = "";
		 String osName = System.getProperties().getProperty("os.name").toLowerCase();
         if(osName.contains("linux")){
        	 voicePath = Global.getConfig("linux.voice");
         }else if(osName.contains("windows")){
        	 voicePath =  Global.getConfig("windows.voice");
         }
         return voicePath;
	}
	/**
	 * 简历文件路径
	 * @return
	 */
	public static String getDocBasePath(){
		String voicePath = "";
		String osName = System.getProperties().getProperty("os.name").toLowerCase();
		if(osName.contains("linux")){
			voicePath = Global.getConfig("linux.file");
		}else if(osName.contains("windows")){
			voicePath =  Global.getConfig("windows.file");
		}
		return voicePath;
	}
	/**
	 * 是否是调试（测试）模式
	 * @return
	 */
	public static boolean isDebugMode(){
		String debug = Global.getConfig("debug");
		return "debug".equals(debug);
	}
}
